package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 运输车辆对象 cars
 * 
 * @author itkey
 * @date 2022-11-21
 */
public class Cars extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNumber;

    /** 司机id */
    @Excel(name = "司机id")
    private Long driversId;

    /** 状态（0：空闲 1使用 -1维修） */
    @Excel(name = "状态", readConverterExp = "0=：空闲,1=使用,-=1维修")
    private Long state;

    /** 车辆载重 */
    @Excel(name = "车辆载重")
    private Long loadCap;

    /** 车辆负载 */
    @Excel(name = "车辆负载")
    private Long loadVolume;

    /** 颜色 */
    @Excel(name = "颜色")
    private String clolor;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarNumber(String carNumber) 
    {
        this.carNumber = carNumber;
    }

    public String getCarNumber() 
    {
        return carNumber;
    }
    public void setDriversId(Long driversId) 
    {
        this.driversId = driversId;
    }

    public Long getDriversId() 
    {
        return driversId;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setLoadCap(Long loadCap) 
    {
        this.loadCap = loadCap;
    }

    public Long getLoadCap() 
    {
        return loadCap;
    }
    public void setLoadVolume(Long loadVolume) 
    {
        this.loadVolume = loadVolume;
    }

    public Long getLoadVolume() 
    {
        return loadVolume;
    }
    public void setClolor(String clolor) 
    {
        this.clolor = clolor;
    }

    public String getClolor() 
    {
        return clolor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carNumber", getCarNumber())
            .append("driversId", getDriversId())
            .append("state", getState())
            .append("loadCap", getLoadCap())
            .append("loadVolume", getLoadVolume())
            .append("clolor", getClolor())
            .append("createTime", getCreateTime())
            .toString();
    }
}
